﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001373 RID: 4979
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class TakePrestigeRewardScRsp : IMessage<TakePrestigeRewardScRsp>, IMessage, IEquatable<TakePrestigeRewardScRsp>, IDeepCloneable<TakePrestigeRewardScRsp>, IBufferMessage
	{
		// Token: 0x17003EC6 RID: 16070
		// (get) Token: 0x0600DEE6 RID: 57062 RVA: 0x002543A5 File Offset: 0x002525A5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<TakePrestigeRewardScRsp> Parser
		{
			get
			{
				return TakePrestigeRewardScRsp._parser;
			}
		}

		// Token: 0x17003EC7 RID: 16071
		// (get) Token: 0x0600DEE7 RID: 57063 RVA: 0x002543AC File Offset: 0x002525AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return TakePrestigeRewardScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003EC8 RID: 16072
		// (get) Token: 0x0600DEE8 RID: 57064 RVA: 0x002543BE File Offset: 0x002525BE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return TakePrestigeRewardScRsp.Descriptor;
			}
		}

		// Token: 0x0600DEE9 RID: 57065 RVA: 0x002543C5 File Offset: 0x002525C5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakePrestigeRewardScRsp()
		{
		}

		// Token: 0x0600DEEA RID: 57066 RVA: 0x002543D0 File Offset: 0x002525D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakePrestigeRewardScRsp(TakePrestigeRewardScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.level_ = other.level_;
			this.reward_ = ((other.reward_ != null) ? other.reward_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600DEEB RID: 57067 RVA: 0x00254428 File Offset: 0x00252628
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakePrestigeRewardScRsp Clone()
		{
			return new TakePrestigeRewardScRsp(this);
		}

		// Token: 0x17003EC9 RID: 16073
		// (get) Token: 0x0600DEEC RID: 57068 RVA: 0x00254430 File Offset: 0x00252630
		// (set) Token: 0x0600DEED RID: 57069 RVA: 0x00254438 File Offset: 0x00252638
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17003ECA RID: 16074
		// (get) Token: 0x0600DEEE RID: 57070 RVA: 0x00254441 File Offset: 0x00252641
		// (set) Token: 0x0600DEEF RID: 57071 RVA: 0x00254449 File Offset: 0x00252649
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Level
		{
			get
			{
				return this.level_;
			}
			set
			{
				this.level_ = value;
			}
		}

		// Token: 0x17003ECB RID: 16075
		// (get) Token: 0x0600DEF0 RID: 57072 RVA: 0x00254452 File Offset: 0x00252652
		// (set) Token: 0x0600DEF1 RID: 57073 RVA: 0x0025445A File Offset: 0x0025265A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemList Reward
		{
			get
			{
				return this.reward_;
			}
			set
			{
				this.reward_ = value;
			}
		}

		// Token: 0x0600DEF2 RID: 57074 RVA: 0x00254463 File Offset: 0x00252663
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as TakePrestigeRewardScRsp);
		}

		// Token: 0x0600DEF3 RID: 57075 RVA: 0x00254474 File Offset: 0x00252674
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(TakePrestigeRewardScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && this.Level == other.Level && object.Equals(this.Reward, other.Reward) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600DEF4 RID: 57076 RVA: 0x002544D4 File Offset: 0x002526D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.Level != 0U)
			{
				num ^= this.Level.GetHashCode();
			}
			if (this.reward_ != null)
			{
				num ^= this.Reward.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600DEF5 RID: 57077 RVA: 0x00254542 File Offset: 0x00252742
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600DEF6 RID: 57078 RVA: 0x0025454A File Offset: 0x0025274A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600DEF7 RID: 57079 RVA: 0x00254554 File Offset: 0x00252754
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.Retcode);
			}
			if (this.Level != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.Level);
			}
			if (this.reward_ != null)
			{
				output.WriteRawTag(82);
				output.WriteMessage(this.Reward);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600DEF8 RID: 57080 RVA: 0x002545CC File Offset: 0x002527CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.Level != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Level);
			}
			if (this.reward_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Reward);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600DEF9 RID: 57081 RVA: 0x0025463C File Offset: 0x0025283C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(TakePrestigeRewardScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.Level != 0U)
			{
				this.Level = other.Level;
			}
			if (other.reward_ != null)
			{
				if (this.reward_ == null)
				{
					this.Reward = new ItemList();
				}
				this.Reward.MergeFrom(other.Reward);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600DEFA RID: 57082 RVA: 0x002546B8 File Offset: 0x002528B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600DEFB RID: 57083 RVA: 0x002546C4 File Offset: 0x002528C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 24U)
				{
					if (num != 40U)
					{
						if (num != 82U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							if (this.reward_ == null)
							{
								this.Reward = new ItemList();
							}
							input.ReadMessage(this.Reward);
						}
					}
					else
					{
						this.Level = input.ReadUInt32();
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04005856 RID: 22614
		private static readonly MessageParser<TakePrestigeRewardScRsp> _parser = new MessageParser<TakePrestigeRewardScRsp>(() => new TakePrestigeRewardScRsp());

		// Token: 0x04005857 RID: 22615
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005858 RID: 22616
		public const int RetcodeFieldNumber = 3;

		// Token: 0x04005859 RID: 22617
		private uint retcode_;

		// Token: 0x0400585A RID: 22618
		public const int LevelFieldNumber = 5;

		// Token: 0x0400585B RID: 22619
		private uint level_;

		// Token: 0x0400585C RID: 22620
		public const int RewardFieldNumber = 10;

		// Token: 0x0400585D RID: 22621
		private ItemList reward_;
	}
}
